home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM 1996 Fall / BMUG Fall'96 PD-ROM.iso / Education / Math / MathPad 2.4 / intro help / intro help.rsrc / TEXT_135_Graphing Points.txt < prev   
Text File  |  1996-03-26  |  452b  |  17 lines

  1. -- To plot points, make a list of 3 or more x,y coordinate pairs.
  2. xy = {
  3. {1, 2.3},
  4. {2, 4.1},
  5. {3, 6.4},
  6. {4, 3.0},
  7. {5, 1.5} }
  8.  
  9. plot xy
  10. plotline xy  -- To connect the points, use "plotline"
  11.  
  12. -- You can also plot a list of y values evenly spaced along x
  13. ys = {1,2,3,4,5,6,7,6,5,4,3,2,1}
  14. plot ys      -- (triangle markers)
  15.  
  16. -- Lists of points can be read from a separate file using read(). See the doc files "Datafiles" and "Plotting" for more information.
  17.